package com.mhc.suzuki.dal.mapper.ext;

import com.mhc.suzuki.bo.OrderLoanInfoBO;
import com.mhc.suzuki.dal.mapper.OrderMapper;
import com.mhc.suzuki.dal.model.OrderDO;
import com.mhc.suzuki.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for Order.
 */

@Mapper
@Repository
public interface OrderExtMapper extends OrderMapper {

  /**
   * 查询订单贷款银行信息
   * @param paramMap map查询参数
   * @return
   */
  OrderLoanInfoBO selectGeneralInfoByOrderNo(Map<String, ?> paramMap);

  /**
   * 查询订单
   * @param orderNo 订单号
   * @return
   */
  OrderDO selectByOrderNo(String orderNo);

  /**
   * 查询订单列表
   * @param paramMap map查询参数
   * @return
   */
  List<OrderVO> selectListByQuery(Map<String, ?> paramMap);


  /**
   * 记录数
   * @param paramMap map查询参数
   * @return
   */
  int countListByQuery(Map<String, ?> paramMap);


}
